﻿@{
    Layout = null;
}
@model List<JStore.Web.Controllers.SysManage.ViewModels.MenuModel>
<ul id="treeMenu" style="margin-top: 3px;">
    @foreach (var item in Model.Where(c => c.ParentId == 0))
    {
        <li isexpand="true"><span>@item.MenuName</span>
            <ul>
                @foreach (var child in Model.Where(c => c.ParentId == item.MenuId))
                {
                    <li><span><a href="@child.LinkUrl" target="home">@child.MenuName</a> </span></li>
                }
            </ul>
        </li>
    }
</ul>
